select * from productos inner join productos_idioma on productos.productosID=productos_idioma.productosID where productos.productosID=jquery-1.5.1.min.js and productos_idioma.idioma='ESP' - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.1.min.js and productos_idioma.idioma='ESP'' at line 3